package common

import (
	"iot-base/common/logger"
	"runtime"
)

//PrintStack 打印堆栈
func PrintStack() {
	var buf [4096]byte
	n := runtime.Stack(buf[:], false)
	//fmt.Printf("==> %s\n", string(buf[:n]))
	logger.SLog.Error("panic !!!!", "stack", string(buf[:n]))
}
